package com.animal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author animal
 * @since 2022-01-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AnUser对象", description="")
public class AnUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id主键")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "用户头像")
    private String headPicture;

    @ApiModelProperty(value = "用户等级")
    private Integer level;

    @ApiModelProperty(value = "创建时间")
    private Date usCreatTime;

    @ApiModelProperty(value = "修改时间")
    private Date usUpdTime;

    @ApiModelProperty(value = "权限 0 管理员 1 用户")
    private String role;

    @ApiModelProperty(value = "修改密码")
    private String rpassword;

    @ApiModelProperty(value = "余额")
    private float balance;

    @TableField(exist = false)
    private AnMeans anMeans;

}
